package com.studyroom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.studyroom.entity.Announcement;
import com.studyroom.dto.SearchDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

public interface AnnouncementService extends IService<Announcement> {
    IPage<Announcement> search(SearchDTO params);
    List<Announcement> getPublishedAnnouncements();
    Page<Announcement> getAnnouncementsByPage(int page, int size);
    Announcement getAnnouncementById(Long id);
} 